package com.example.demo.stream;

public class DemoLambda {


    public static void main(String[] args) {
        //学习函数式编程
        Runnable runnable=new Runnable() {
            @Override
            public void run() {
                System.out.println("my run ....");
            }
        };

        //开启线程
        new Thread(runnable).start();

        //函数式编程
        new Thread(()-> System.out.println("lambda is run ...")).start();



    }
}
